import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

/**
 * @user: 180300
 * @date: 2018/4/17 18:20
 * @description: App 根路由
 *
 */

const routes: Routes = [
  { path: '', redirectTo: 'login', pathMatch: 'full' },
  { path: 'login', loadChildren: './login/login.module#LoginModule' },
  { path: 'project', loadChildren: './project/project.module#ProjectModule' },
  { path: 'task', loadChildren: './task/task.module#TaskModule' },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {}
